package com.example.zg.zg_312_ordering_new.services;

import com.example.zg.zg_312_ordering_new.beans.CollectInfo;
import com.example.zg.zg_312_ordering_new.beans.CollectionList_Food;
import com.example.zg.zg_312_ordering_new.beans.CollectionList_Shop;
import com.example.zg.zg_312_ordering_new.beans.LoginBean;
import com.example.zg.zg_312_ordering_new.beans.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("userLogin.do")
    Call<LoginBean>userLogin(
            @Query("username")String username,
            @Query("userpass")String userpass
    );

    @GET("userRegister.do")
    Call<Result>register(
            @Query("username")String username,
            @Query("userpass")String userpass,
            @Query("mobilenum")String mobilenum,
            @Query("address")String address,
            @Query("comment")String comment
    );
    @GET("userCollectFood.do")
    Call<Result>userCollectFood(
            @Query("user_id")int user_id,
            @Query("food_id")int food_id
    );
    //
    //
    @GET("getAllUserCollection.do")
    Call<List<CollectionList_Food>>getAllUserCollection(
            @Query("user_id")int user_id,
            @Query("flag")int flag
    );

    @GET("getAllUserCollection.do")
    Call<List<CollectionList_Shop>>getAllUserShopCollection(
            @Query("user_id")int user_id,
            @Query("flag")int flag
    );
}

